package org.wesc.boot.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户消息阅读标记表
 * </p>
 *
 * @author Wesley
 * @since 2021-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_message")
public class UserMessage extends Model<UserMessage> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 通告ID
     */
    private String noticeId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 阅读状态（0未读，1已读）
     */
    private String readFlag;

    /**
     * 阅读时间
     */
    private LocalDateTime readTime;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String NOTICE_ID = "notice_id";

    public static final String USER_ID = "user_id";

    public static final String READ_FLAG = "read_flag";

    public static final String READ_TIME = "read_time";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
